﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Filter.aspx.cs" EnableViewState="false" Inherits="eCommerce.web.Ajax.Product.Filter" %>
<%@ Import Namespace="eCommerce.core.Helpers" %>
<script type="text/javascript" src="/js/productview.js"></script><!--productgridlistview-->

<form id="formFilterProduct" runat="server">

<ul id="products" class="grid clearfix">
    <asp:Repeater ID="rptProduct" OnItemDatabound="rptProduct_ItemDataBound" runat="server">
    <ItemTemplate>
    <asp:HiddenField ID="hfCategoryId" Value='<%# Eval("CategoryId") %>' runat="server"/>
    <li class="da-thumbs">
         <asp:HiddenField ID="hfProductId" Value='<%# Eval("ProductId") %>' runat="server"/>    
         <asp:HiddenField ID="hfName" Value='<%# Eval("Name") %>' runat="server"/>   
         <asp:HiddenField ID="hdImagePath" Value='<%# Eval("ImagePath") %>' runat="server"/>   
         <asp:HiddenField ID="hdStatus" Value='<%# Eval("Status") %>' runat="server"/>   
         <asp:HiddenField ID="hdSpecialPrice" Value='<%# Eval("SpecialPrice") %>' runat="server"/>   
         <asp:HiddenField ID="hdUnitPrice" Value='<%# Eval("UnitPrice") %>' runat="server"/>   
        <div class="product-thumb-hover">
            <section class="left">
                <asp:Literal ID="ltrHref" runat="server"></asp:Literal>
                     <asp:Literal ID="ltImage" runat="server"/>
                </a>
                <asp:Literal ID="ltrIconNew" runat="server"/>
                <article class="da-animate da-slideFromRight" style="display: block;">
                    <h3><%# Eval("Name") %></h3>
                    <p>
                        <asp:Literal ID="ltrHrefBelow" runat="server"></asp:Literal>
                        &nbsp;&nbsp;            
                        <a class="wishlist tip" title="Yêu thích"></a>&nbsp;&nbsp;
                        <a onclick="addItem(<%# Eval("ProductId") %>);" class="cart tip" title="Giỏ hàng"></a>&nbsp;
                    </p>
                </article>
            </section>
        </div>
        <section class="center">
            <h3><asp:Literal ID="ltrHrefCode" runat="server"></asp:Literal><%# Eval("Code")%> - <%# Eval("Name") %></a></h3>
            <asp:Literal ID="ltCategory" runat="server" visible="false"/>
        </section>
        <section class="right">
            <asp:Literal ID="ltrPrice" runat="server"></asp:Literal>
            <%--<span class="price"><small><%# Utils.FormatPrice(Utils.ToDecimal(Eval("SpecialPrice")))%></small>&nbsp;&nbsp; <%# Utils.FormatPrice(Utils.ToDecimal(Eval("UnitPrice")))%></span>--%>
            <ul class="menu-button">
                <li><a href="#" class="compare tip" title="So sánh"></a></li>
                <li><a href="#" class="wishlist tip" title="Yêu thích"></a></li>
                <li><a href="#" class="cart tip" title="Giỏ hàng"></a></li>                                
            </ul>
        </section>
    </li>
    </ItemTemplate>
    </asp:Repeater>
</ul>

<ul id="pagination">
    <asp:Literal ID="ltPager" runat="server"/>    
</ul>
<!-- /list products -->


<script type="text/javascript">
    var hdCatUrl = $('#hdCatUrl').val();
    if (hdCatUrl == 'thu-dong') {
        $('.sidebar').remove();
        $('section.content').css('width', '100%');
    }

</script>

</form>